﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections.ObjectModel;

using GasData;

namespace WPF_DataLogger
{
    public class GasDataUpdateEventArgs : System.EventArgs
    {
        //private Dictionary <String, GasInfo> gas_data_table;
        private GasTable gas_data_table;

        /* Constructor */
        public GasDataUpdateEventArgs()
        {
            //this.gas_data_table = new Dictionary<String, GasInfo>();
            this.gas_data_table = new GasTable();
        }

        public GasDataUpdateEventArgs(GasTable new_table)
        {
            this.gas_data_table = new_table;
        }

        /* Public Methods */

        public Dictionary<String, GasInfo> Gas_data_table
        {
            get
            {
                return gas_data_table.The_table;
            }
        }

        public void UpdateExistGasInfo(GasInfo new_info)
        {


        }

        public void AddNewGasInfo(KeyValuePair<String, GasInfo> new_gas_info)
        {
            this.gas_data_table.AddNewGasItem(new_gas_info);
        }
   
    }
}
